

include ./Makedefs

SUBDIRS = mm pm util kernel
OBJS = kernel/daha.o kernel/fs_sched.o \
				pm/pm.o pm/proctable.o \
				mm/mm.o
				


.PHONY: subdirs $(SUBDIRS) clean demo
	
subdirs: $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@

demo: subdirs
	$(CC) $(CFLAGS) util/demo.c $(OBJS) -o demo
	./demo
	
clean:
	@for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
	@rm -f demo
	
